package com.youlei.newgraduateproject.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author youlei
 * @since 2021-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="SysWarehousestockOrderitem对象", description="")
public class SysWarehousestockOrderitem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "仓库产品id")
    @TableField("warehouseStock_id")
    private Long warehousestockId;

    @ApiModelProperty(value = "订单产品id")
    private Long orderitemId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated;

    @ApiModelProperty(value = "状态")
    private Integer statu;

    @ApiModelProperty(value = "0为逻辑未删除，1为逻辑已删除")
    private Integer deleted;


}
